package com.cssw.fyzb.busi.util;

import java.util.Calendar;
import java.util.Date;

/**
 * @author Feng Chen
 */
public abstract class DateUtil {

    private DateUtil() {

    }

    public static Date add(Date date, int day) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(Calendar.DATE, day);
        return calendar.getTime();
    }


    public static Date addMinute(Date date, int minute) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(Calendar.MINUTE, minute);
        return calendar.getTime();
    }


}
